﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZebraCoreLib.Framework;
using System.Data.Linq.Mapping;
using ZebraCoreLib.ZebraException;
using ZebraCoreLib.BasBiz;
using System.Data.Common;
using ZebraCoreLib.Logistics;
using ZebraCoreLib.Stock;

namespace ZebraCoreLib.StockValueAdd
{
    [ZebraBizObject(TableName = "osPortvalueAdd")]
    public class StockValueAdd : BasBizService<StockValueAdd>
    {
        #region 库存增值服务表 字段属性

        [ZebraField(Title = "编号", DataField = "ID", IsRequired = true, IsPrimaryKey = true, IsAutoID = true)]
        public string ID { get; set; }

        [ZebraField(Title = "转运单号", DataField = "seCode", IsRequired = true)]
        public string SeCode { get; set; }

        [ZebraField(Title = "入库信息", Relationship = "sgcode=seCode")]
        public GoodsStock Stock { get; set; }

        [ZebraField(Title = "客户编号", DataField = "suCode", IsRequired = true)]
        public string SuCode { get; set; }

        [ZebraField(Title = "仓库", DataField = "slArea", IsRequired = true)]
        public string SlArea { get; set; }

        [ZebraField(Title = "仓库信息", Relationship = "sacode=slArea")]
        public LogisticsCenter LogisticsCenterArea { get; set; }

        [ZebraField(Title = "", DataField = "pgSelfID", IsRequired = true)]
        public string PgSelfID { get; set; }

        [ZebraField(Title = "服务编号", DataField = "serviceID", IsRequired = true)]
        public string ServiceID { get; set; }

        [ZebraField(Title = "", DataField = "serviceRemark", IsRequired = true)]
        public string ServiceRemark { get; set; }

        [ZebraField(Title = "", DataField = "imagePath", IsRequired = true)]
        public string ImagePath { get; set; }

        [ZebraField(Title = "", DataField = "proFlag", IsRequired = true)]
        public string ProFlag { get; set; }

        [ZebraField(Title = "", DataField = "message", IsRequired = true)]
        public string Message { get; set; }

        [ZebraField(Title = "", DataField = "checkOutFlag", IsRequired = true)]
        public string CheckOutFlag { get; set; }

        [ZebraField(Title = "", DataField = "vFlag", IsRequired = true)]
        public int VFlag { get; set; }

        [ZebraField(Title = "", DataField = "vCharge", IsRequired = true)]
        public string VCharge { get; set; }

        [ZebraField(Title = "", DataField = "OpTime", IsRequired = true,SortByDesc=true,SortOrder=true)]
        public DateTime OpTime { get; set; }

        [ZebraField(Title = "", DataField = "opMan", IsRequired = true)]
        public string OpMan { get; set; }

        [ZebraField(Title = "", DataField = "output_flag", IsRequired = true)]
        public string Output_flag { get; set; }

        #endregion

        //public override List<StockValueAdd> List(string parameters, ListFlags flags, int pageIndex, int pageSize, out int pageCount)
        //{
        //    pageCount = 0;
        //    return null;

        //}
    }
}
